package com.packdate;

import com.entity.Phone;
import com.resp.BaseResponseEntity;

import java.util.List;

public class PackCarDate<T> {
    private T date;
    private T uDate;
    private List<T> phones;
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public PackCarDate(){

    }
    public PackCarDate(T uDate, List<T> phones) {
        this.uDate = uDate;
        this.phones = phones;
        this.status=200;
    }

    public PackCarDate(T date, T uDate) {
        this.date = date;
        this.uDate = uDate;
        this.status=200;
    }

   public <T> PackCarDate errer(int i){
       PackCarDate p = new PackCarDate<T>();
        p.setStatus(i);
        return p;
   }

    public T getuDate() {
        return uDate;
    }

    public void setuDate(T uDate) {
        this.uDate = uDate;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public List<T> getPhones() {
        return phones;
    }

    public void setPhones(List<T> phones) {
        this.phones = phones;
    }
}
